//
//  UserInfoViewModel.h
//  CharlesMVX
//
//  Created by Charles on 2020/4/1.
//  Copyright © 2020 Charles. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ReactiveCocoa.h"


NS_ASSUME_NONNULL_BEGIN
@class User;
@interface UserInfoViewModel : NSObject

+ (instancetype)viewModelWithUserId:(NSInteger)userId;

- (User *)user;
- (RACCommand *)fetchUserInfoCommand;

- (UIImage *)icon;
- (NSString *)name;
- (NSString *)summary;
- (NSString *)blogCount;
- (NSString *)friendCount;

@end

NS_ASSUME_NONNULL_END
